import {myRequest} from '../network/http.js'

 const baseUrl = 'customer/order'
 
 
export function canclOrder (config) {  
	return myRequest({
		url:baseUrl+'/cancel/'+config	,
		method:'put'
	})
}

export function historyOrders (config) {  
	return myRequest({
		url:baseUrl+'/historyOrders',
		method:'get',
		data:config
	})
}

export function orderDetail (config) {  
	return myRequest({
		url:baseUrl+'/orderDetail/' + config,
		method:'get'
	})
}

export function orderDetailByOrderNumber (config) {  
	return myRequest({
		url:baseUrl+'/orderDetailByOrderNumber/' + config,
		method:'get'
	})
}

export function payment (config) {  
	return myRequest({
		url:baseUrl+'/payment',
		method:'put',
		data:config
	})
}	

export function reminder (config) {  
	return myRequest({
		url:baseUrl+'/reminder/'+config,
		method:'get'
	})
}	

export function repetition (config) {  
	return myRequest({
		url:baseUrl+'/repetition/'+config,
		method:'post'
	})
}	

export function submit (config) {  
	return myRequest({
		url:baseUrl+'/submit',
		method:'post',
		data:config
	})
}	

export function rejection (config) {  
	return myRequest({
		url:baseUrl+'/rejection',
		method:'put',
		data:config
	})
}	